package com.collabscm.md.base.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.collabscm.pf.model.DomainObject;

/**
 * 合作伙伴分组
 * @author Zeng Raoxing
 */
@Entity
@Table(name = "t_md_partner_group", catalog = "collabscm")
public class PartnerGroup extends DomainObject {
	private static final long serialVersionUID = 1L;
	// Fields
	/**分组ID*/
	private Long groupId;
	/**所属机构ID*/
	private Long organId;
	/**分组的名称*/
	private String groupName;
	/**分组类型*/
	private Long groupCategory;
	/**分组描述*/
	private String groupDesc;


	// Property accessors
	@Id
	@Column(name = "Group_Id", unique = true, nullable = false, precision = 12, scale = 0)
	public Long getGroupId() {
		return this.groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	@Column(name = "Organ_ID", precision = 12, scale = 0)
	public Long getOrganId() {
		return this.organId;
	}

	public void setOrganId(Long organId) {
		this.organId = organId;
	}

	@Column(name = "Group_Name", length = 60)
	public String getGroupName() {
		return this.groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	@Column(name = "Group_Category", precision = 2, scale = 0)
	public Long getGroupCategory() {
		return this.groupCategory;
	}

	public void setGroupCategory(Long groupCategory) {
		this.groupCategory = groupCategory;
	}

	@Column(name = "Group_Desc", length = 500)
	public String getGroupDesc() {
		return this.groupDesc;
	}

	public void setGroupDesc(String groupDesc) {
		this.groupDesc = groupDesc;
	}

}